'use strict';

function calculate_elements_sum(collection, element) {
  //在这里写入代码  
  let arr=collection.reduceRight(function(preValue,curValue,curIndex){
    return curIndex;
  });
  return arr;
}

module.exports = calculate_elements_sum;
